<template>

</template>

<script>

import {reactive,readonly,ref,isRef,isReactive,isProxy,isReadonly,} from "vue";

export default {
  name: 'App',
  components: {},
  setup() {
    let sum = ref(0);
    let car = reactive({
      name: '奔驰',
      price: '50w'
    })

    let car2 = readonly(car)

    //判断数据
    console.log(isRef(sum))
    console.log(isReactive(car))
    console.log(isProxy(car))
    console.log(isReadonly(car2))

    return {
      car,
      sum
    }
  }
}
</script>

<style>

</style>
